package com.medical.controller;

import com.medical.pojo.Region;
import com.medical.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("region")
public class RegionController {

    @Autowired
    private RegionService regionService;

    @RequestMapping("/findAll")
    public List<Region> findAll(){
        return regionService.findAll();
    }
}
